import axios from '../axios'

export const addDepot = (goodsId, params) => {
    return axios.post(`goods/depot/` + goodsId, params)
}

export const depotList = (goodsId, params) => {
    return axios.get(`goods/depot/list/` + goodsId, {params: params})
}

export const removeDepot = (depotId) => {
    return axios.delete(`goods/depot/` + depotId);
}


export const batchRemoveDepot = (goodsId) => {
    return axios.delete(`goods/depot/batch/` + goodsId);
}